Skip to content

Tigers - Melley #130

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Tigers - Melley #130

wants to merge 3 commits into from

Conversation

mell2022
Copy link

No description provided.

Copy link

@CheezItMan CheezItMan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Melley, this is really well written. Very solid code and it all works. Well done, you hit the learning goals here.

@@ -1,15 +1,129 @@
const letterPool = Array(9)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 😀

Y: 4,
Z: 10,
};

export const drawLetters = () => {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

adjustedLetterPool.splice(letterIndex, 1);
handList.push(currentLetter);
}
return handList;
};

export const usesAvailableLetters = (input, lettersInHand) => {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Very clear

lettersInHandCount[letter] -= 1;
}
}
return true;
};

export const scoreWord = (word) => {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

if (word.length > 6) {
score += 8;
}
return score;
};

export const highestScoreFrom = (words) => {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants